using System;
using System.Collections.Generic;
using System.Text;

namespace DLL.Essences
{
    public class PurchDocument
    {
        int id;
        string providersDocumentNumber;
        int number;
        DateTime documentDate, regDate;
        int priceConditionID;
        int providersID;

        double custSumm, purchSumm, endSumm;
        DateTime date;
        int userID;

        #region Constructors
        PurchDocument(int id,string providersDocumentNumber,int number,DateTime documentDate,DateTime regDate,int priceConditionID,int providersID,double custSumm, double purchSumm, double endSumm, DateTime date, int userID)
        {
            this.id=id;
            this.providersDocumentNumber = providersDocumentNumber;
            this.number=number;
            this.documentDate=documentDate;
            this.regDate=regDate;
            this.priceConditionID=priceConditionID;
            this.providersID=providersID;
            this.custSumm=custSumm;
            this.purchSumm=purchSumm;
            this.endSumm=endSumm;
            this.date=date;
            this.userID = userID;
   
        }

        PurchDocument()
        {
        }

        #endregion

        public int Id
        {
            get
            {
                return id;
            }
            set
            {
                id = value;
            }
        }

        public string ProvidersDocumentNumber
        {
            set
            {
                providersDocumentNumber = value;
            }
            get
            {
                return providersDocumentNumber; 
            }
        }

        public int Number
        {
            get
            {
                return number;
            }
            set
            {
                number = value;
            }
        }

        public DateTime DocumentDate
        {
            set
            {
                documentDate = value;
            }

            get
            {
                return documentDate;
            }
        }

        public DateTime RegDate
        {
            set
            {
                regDate = value;
            }

            get
            {
                return regDate;
            }
        }

        public int PriceConditionID
        {
            get
            {
                return priceConditionID;
            }
            set
            {
                priceConditionID = value;
            }
        }

        public int ProvidersID
        {
            get
            {
                return providersID;
            }
            set
            {
                providersID = value;
            }
        }

        public double CustSumm
        {
            get
            {
                return custSumm;
            }
            set
            {
                custSumm = value;
            }
        }

        public double PurchSumm
        {
            get
            {
                return purchSumm;
            }
            set
            {
                purchSumm = value;
            }
        }

        public double EndSumm
        {
            get
            {
                return endSumm;
            }
            set
            {
                endSumm = value;
            }
        }

        public int UserId
        {
            get
            {
                return userID;
            }
            set
            {
                userID = value;
            }
        }

        public DateTime Date
        {
            get
            {
                return date;
            }
            set
            {
                date = value;
            }
        }
    }
}

